These function takes a character vector of XML for the open Document Format and process it it various ways. odfTranslate
converts some XML modified characters (such as >
) to R code (>
). odfTranslate
also tries to mistake proof the code by anticipating characters that might be in UTF-8 encoding to R compliant characters (e.g. in some fonts, " will become a UTF-8 character, which R will choke on).
stripXmlTag
removes any text between "<" and="" "="">" and optionally remove leading or trailing whitespace. ">
processInLine
uses odfTranslate
and stripXmlTag
to process in-line Sweave
statements. Similarly, xml2R
does the same thing for code chunks.